package com.joinlabs.mapper;

import com.joinlabs.entity.ProTypeBean;
import com.joinlabs.entity.Wares;
import com.joinlabs.entity.conditionBean;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;


public interface WaresMapper {
    int deleteByPrimaryKey(BigDecimal waresId);

    int insert(Wares record);

    int insertSelective(Wares record);

    Wares selectByPrimaryKey(BigDecimal waresId);

    List<Wares> findInfobyGrounding(BigDecimal waresId);
    
    int updateByPrimaryKeySelective(Wares record);

    int updateByPrimaryKey(Wares record);
    
    List<Wares> findInfoAll();
    
    //类别查找
    List<Wares> selectBytypeId(BigDecimal warestypeId);
    
    //类别名查找
    String selectBytypeName(BigDecimal warestypeId);
    
    //模糊搜索
    List<Wares> selectBylikeName(String likeName);
    
    //条件查询
    List<ProTypeBean> selectfyTypeName();
    
    //多条件查询结果
    List<Wares> selectBytypewaresName(conditionBean conditionBean);
    
        //主页模糊查询   --吴毓印
    List<Wares> selectsousuo(String likeName);
    
    
    //商品上架修改
    int updateSJbypids(BigDecimal waresId);
    
    //商品下架修改
    int updateXJbypids(BigDecimal waresId);
    
    int insertProbyInfo(Wares wares);   
    
    //根据pid查找数据
    Wares findInfobyPid(BigDecimal waresId);
    
    List<Wares> findInfobywaresUser();
}